package com.bulletelc.apollopre.module.user.register;

import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2017/12/16
 * desc  :
 */

public interface RegisterContract {
    interface View extends IView {
        void onSuccessSMS(String authCode, String encrypt);

        void onFailSMS(String fail);

        void onErrorSMS(String error);

        void onSuccess();

        void onFail(String fail);

        void onError(String error);
    }

    interface Presenter extends IPresenter<View> {
        /**
         * 发送验证码
         */
        void sendSMS(String mobile_number);

        /**
         * 注册接口
         * @param nickname        昵称
         * @param mobile_number   手机号
         * @param password        密码
         */
        void register(String nickname,String mobile_number,String password,String encrypt, String unionid);
    }

}
